package com.akkainaction.router.pool;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.akkainaction.router.pool.router.MasterRouterActor;

public class TestMasterRouterActor {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys");
        ActorRef masterRouterActor = system.actorOf(Props.create(MasterRouterActor.class), "masterRouterActor");
        masterRouterActor.tell("hello A",ActorRef.noSender());
        masterRouterActor.tell("hello B",ActorRef.noSender());
        masterRouterActor.tell("hello C",ActorRef.noSender());
        masterRouterActor.tell("hello D",ActorRef.noSender());
    }
}
